Tcp server 2 starting. 	22.1.2022 	19:04:51 	_lx_SERVER 	(11. Tcp Server 2)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	22.1.2022 	19:04:53 	lx 	(11. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	22.1.2022 	19:04:53 	lx 	(11. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	22.1.2022 	19:04:53 	lx 	(11. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	22.1.2022 	19:04:53 	lx 	(11. Tcp Server 2)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	22.1.2022 	19:04:53 	lx 	(11. Tcp Server 2)

  database connect time: 0.0003 seconds. 	22.1.2022 	19:04:53 	lx 	(11. Tcp Server 2)

* connect: connection changed to 'postgre-demo/fi_demo'. 	22.1.2022 	19:04:53 	lx 	(11. Tcp Server 2)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	22.1.2022 	19:04:53 	lx 	(11. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	22.1.2022 	19:04:53 	lx 	(11. Tcp Server 2)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x0122983fd0, size: 400. 	22.1.2022 	19:04:53 	lx 	(11. Tcp Server 2)

********************* /Users/pasi/nc/nc-server/ *********************. 	22.1.2022 	19:04:53 	lx 	(11. Tcp Server 2)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'. 	22.1.2022 	19:04:53 	lx 	(11. Tcp Server 2)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	22.1.2022 	19:04:53 	lx 	(11. Tcp Server 2)

1. Loading plugin: nc/worker/auth_worker. 	22.1.2022 	19:04:53 	lx 	(11. Tcp Server 2)

2. Loading plugin: nc/worker/query_worker. 	22.1.2022 	19:04:53 	lx 	(11. Tcp Server 2)

3. Loading plugin: nc/worker/query4d_worker. 	22.1.2022 	19:04:53 	lx 	(11. Tcp Server 2)

4. Loading plugin: nc/worker/call4d_worker. 	22.1.2022 	19:04:53 	lx 	(11. Tcp Server 2)

All plugins have been loaded. 	22.1.2022 	19:04:53 	lx 	(11. Tcp Server 2)

* cached preference files: demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - table/prf/field_type.json. 	22.1.2022 	19:04:53 	lx 	(11. Tcp Server 2)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''. 	22.1.2022 	19:04:53 	lx 	(11. Tcp Server 2)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	22.1.2022 	19:04:53 	lx 	(11. Tcp Server 2)

Mac address: f84d896921dc. 	22.1.2022 	19:04:53 	lx 	(11. Tcp Server 2)

TLS certificate files: /Users/pasi/nc/nc-server/preference/cert/cert.pem, /Users/pasi/nc/nc-server/preference/cert/privkey.pem. 	22.1.2022 	19:04:53 	lx 	(11. Tcp Server 2)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.2:5949/
                          https://127.0.0.1:5949/, https://192.168.32.2:5949/. 	22.1.2022 	19:04:53 	lx 	(11. Tcp Server 2)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.2:5949/. 	22.1.2022 	19:04:53 	lx 	(11. Tcp Server 2)

--- server started in 0.0049 seconds, 2022-01-22 19:04:53, used memory 3127.4 kb --- 	 5. 	22.1.2022 	19:04:53 	lx 	(11. Tcp Server 2)

OSX arm64, using: rapidjson-arm, lfs-ffi. 	22.1.2022 	19:04:53 	lx 	(11. Tcp Server 2)

1. uri: HTTP, POST '/rest/nc/query/sql4d' 2022-01-22 19:04:56
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 783
Content-Uncompressed-Length: 1133

LZ4. 	22.1.2022 	19:04:56 	lx 	(11. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	22.1.2022 	19:04:56 	lx 	(11. Tcp Server 2)

    Connected to: 'Manageri v12 plg4d local, , database: plg4d, user: manage_demo'. 	22.1.2022 	19:04:56 	lx 	(11. Tcp Server 2)

  database connect time: 0.0002 seconds. 	22.1.2022 	19:04:56 	lx 	(11. Tcp Server 2)

* connect: connection changed from 'postgre-demo/fi_demo' to 'plg4d/plg4d'. 	22.1.2022 	19:04:56 	lx 	(11. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 1, first value: 'IN210001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	22.1.2022 	19:04:57 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

 1. answer time: 00:00:00.00208
  
SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id
 FROM invoice inv
 WHERE inv.invoice_id <> ''
 ORDER BY inv.invoice_id. 	22.1.2022 	19:04:57 	lx 	(11. Tcp Server 2)

4D: SELECT co.record_id FROM company co WHERE co.company_id <> '' INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.email, co.info FROM company co  WHERE co.company_id <> ''  ORDER BY co.company_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 159, first value: '0001'
 - query name: new:form/nc/erp-sync/query/company.json. 	22.1.2022 	19:15:24 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT co.record_id FROM company co WHERE co.company_id <> '' INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.email, co.info FROM company co  WHERE co.company_id <> ''  ORDER BY co.company_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 159, first value: '0001'
 - query name: new:form/nc/erp-sync/query/company.json. 	22.1.2022 	19:16:15 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT co.record_id FROM company co WHERE co.company_id <> '' INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.email, co.info FROM company co  WHERE co.company_id <> ''  ORDER BY co.company_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 159, first value: '0001'
 - query name: new:form/nc/erp-sync/query/company.json. 	22.1.2022 	19:18:01 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT co.record_id FROM company co WHERE co.company_id <> '' INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.email, co.info FROM company co  WHERE co.company_id <> ''  ORDER BY co.company_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 159, first value: '0001'
 - query name: new:form/nc/erp-sync/query/company.json. 	22.1.2022 	19:18:24 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT co.record_id FROM company co WHERE co.company_id <> '' INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.email, co.info FROM company co  WHERE co.company_id <> ''  ORDER BY co.company_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 159, first value: '0001'
 - query name: new:form/nc/erp-sync/query/company.json. 	22.1.2022 	19:21:14 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 1, first value: 'IN210001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	22.1.2022 	19:21:20 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 1, first value: 'IN210001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	22.1.2022 	19:21:20 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 1, first value: 'IN210001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	22.1.2022 	19:21:20 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 1, first value: 'IN210001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	22.1.2022 	19:22:31 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 1, first value: 'IN210001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	22.1.2022 	19:22:32 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 1, first value: 'IN210001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	22.1.2022 	19:22:32 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 1, first value: 'IN210001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	22.1.2022 	19:22:34 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 1, first value: 'IN210001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	22.1.2022 	19:25:06 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 1, first value: 'IN210001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	22.1.2022 	19:25:06 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 1, first value: 'IN210001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	22.1.2022 	19:25:06 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

*** tcp close for sock 81, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 1 054 bytes ***. 	22.1.2022 	19:26:06 	lx 	(11. Tcp Server 2)

closing socket '81'. 	22.1.2022 	19:26:06 	lx 	(11. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 1, first value: 'IN210001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	22.1.2022 	19:26:14 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 1, first value: 'IN210001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	22.1.2022 	19:26:14 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 1, first value: 'IN210001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	22.1.2022 	19:26:14 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 1, first value: 'IN210001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	22.1.2022 	19:27:26 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 1, first value: 'IN210001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	22.1.2022 	19:27:27 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 1, first value: 'IN210001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	22.1.2022 	19:27:27 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 1, first value: 'IN210001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	22.1.2022 	19:27:54 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 1, first value: 'IN210001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	22.1.2022 	19:27:54 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 1, first value: 'IN210001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	22.1.2022 	19:27:54 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT pr.record_id FROM product pr WHERE pr.product_id <> '' INTO :_lx_atExe1
 - original query: SELECT pr.product_id, pr.transfer_id, pr.name, pr.explanation, pr.sales_price__unit, pr.stock_balance__unit, pr.minimum_stock, pr.ean_code, pr.info, pr.record_id FROM product pr  WHERE pr.product_id <> ''  ORDER BY pr.product_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7
 - result _lx_atExe1 size: 4062, first value: '0002'
 - query name: new:form/nc/erp-sync/moloni/query-local/product-by-order-row.json. 	22.1.2022 	19:28:30 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

 -- tcp answer 26, send count: 4, loop count: 3, bytes sent 315713 / 315713, 0 remaining, total send time 176 µs. 	22.1.2022 	19:28:30 	lx 	(11. Tcp Server 2)

4D: SELECT co.record_id FROM company co WHERE co.company_id <> '' INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.email, co.info FROM company co  WHERE co.company_id <> ''  ORDER BY co.company_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 159, first value: '0001'
 - query name: new:form/nc/erp-sync/query/company.json. 	22.1.2022 	19:28:32 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT inr.record_id FROM invoice_row inr LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id WHERE inv.record_id LIKE '%' INTO :_lx_atExe1
 - original query: SELECT inr.invoice_id, inr.row_number, inr.product_id, pr.transfer_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price, inr.record_id FROM invoice_row inr  LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id  LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id  WHERE inv.record_id LIKE '%'  ORDER BY inr.row_number  INTO :_lx_atExe1,:_lx_alExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_arExe4,:_lx_atExe5
 - result _lx_atExe1 size: 1, first value: 'IN210001'
 - query name: new:form/nc/erp-sync/moloni/query-local/order_row-invoice.json. 	22.1.2022 	19:28:34 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

*** tcp close for sock 81, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 1 078 bytes ***. 	22.1.2022 	19:32:22 	lx 	(11. Tcp Server 2)

closing socket '81'. 	22.1.2022 	19:32:22 	lx 	(11. Tcp Server 2)

*** tcp close for sock 81, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	22.1.2022 	19:40:11 	lx 	(11. Tcp Server 2)

closing socket '81'. 	22.1.2022 	19:40:11 	lx 	(11. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 1, first value: 'IN210001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	22.1.2022 	19:41:42 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT co.record_id FROM company co WHERE co.company_id <> '' INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.email, co.info FROM company co  WHERE co.company_id <> ''  ORDER BY co.company_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 159, first value: '0001'
 - query name: new:form/nc/erp-sync/query/company.json. 	22.1.2022 	19:41:48 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT co.record_id FROM company co WHERE co.company_id <> '' INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.email, co.info FROM company co  WHERE co.company_id <> ''  ORDER BY co.company_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 159, first value: '0001'
 - query name: new:form/nc/erp-sync/query/company.json. 	22.1.2022 	19:44:40 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 1, first value: 'IN210001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	22.1.2022 	19:46:20 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT co.record_id FROM company co WHERE co.company_id <> '' INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.email, co.info FROM company co  WHERE co.company_id <> ''  ORDER BY co.company_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 159, first value: '0001'
 - query name: new:form/nc/erp-sync/query/company.json. 	22.1.2022 	19:46:22 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 1, first value: 'IN210001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	22.1.2022 	19:48:06 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 1, first value: 'IN210001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	22.1.2022 	19:53:41 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT co.record_id FROM company co WHERE co.company_id <> '' INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.email, co.info FROM company co  WHERE co.company_id <> ''  ORDER BY co.company_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 159, first value: '0001'
 - query name: new:form/nc/erp-sync/query/company.json. 	22.1.2022 	19:53:47 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 1, first value: 'IN210001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	22.1.2022 	19:54:05 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 1, first value: 'IN210001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	22.1.2022 	19:54:21 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT co.record_id FROM company co WHERE co.company_id <> '' INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.email, co.info FROM company co  WHERE co.company_id <> ''  ORDER BY co.company_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 159, first value: '0001'
 - query name: new:form/nc/erp-sync/query/company.json. 	22.1.2022 	19:54:28 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 1, first value: 'IN210001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	22.1.2022 	19:56:40 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT co.record_id FROM company co WHERE co.company_id <> '' INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.email, co.info FROM company co  WHERE co.company_id <> ''  ORDER BY co.company_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 159, first value: '0001'
 - query name: new:form/nc/erp-sync/query/company.json. 	22.1.2022 	19:57:21 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 1, first value: 'IN210001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	22.1.2022 	19:59:53 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT co.record_id FROM company co WHERE co.company_id <> '' INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.email, co.info FROM company co  WHERE co.company_id <> ''  ORDER BY co.company_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 159, first value: '0001'
 - query name: new:form/nc/erp-sync/query/company.json. 	22.1.2022 	19:59:57 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 1, first value: 'IN210001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	22.1.2022 	20:04:49 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT co.record_id FROM company co WHERE co.company_id <> '' INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.email, co.info FROM company co  WHERE co.company_id <> ''  ORDER BY co.company_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 159, first value: '0001'
 - query name: new:form/nc/erp-sync/query/company.json. 	22.1.2022 	20:04:57 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 1, first value: 'IN210001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	22.1.2022 	20:17:35 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT co.record_id FROM company co WHERE co.company_id <> '' INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.email, co.info FROM company co  WHERE co.company_id <> ''  ORDER BY co.company_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 159, first value: '0001'
 - query name: new:form/nc/erp-sync/query/company.json. 	22.1.2022 	20:17:40 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 1, first value: 'IN210001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	22.1.2022 	20:17:55 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT co.record_id FROM company co WHERE co.company_id <> '' INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.email, co.info FROM company co  WHERE co.company_id <> ''  ORDER BY co.company_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 159, first value: '0001'
 - query name: new:form/nc/erp-sync/query/company.json. 	22.1.2022 	20:17:59 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 1, first value: 'IN210001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	22.1.2022 	20:20:07 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT co.record_id FROM company co WHERE co.company_id <> '' INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.email, co.info FROM company co  WHERE co.company_id <> ''  ORDER BY co.company_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 159, first value: '0001'
 - query name: new:form/nc/erp-sync/query/company.json. 	22.1.2022 	20:20:39 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 1, first value: 'IN210001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	22.1.2022 	20:24:17 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT co.record_id FROM company co WHERE co.company_id <> '' INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.email, co.info FROM company co  WHERE co.company_id <> ''  ORDER BY co.company_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 159, first value: '0001'
 - query name: new:form/nc/erp-sync/query/company.json. 	22.1.2022 	20:24:23 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 1, first value: 'IN210001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	22.1.2022 	20:25:04 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT co.record_id FROM company co WHERE co.company_id <> '' INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.email, co.info FROM company co  WHERE co.company_id <> ''  ORDER BY co.company_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 159, first value: '0001'
 - query name: new:form/nc/erp-sync/query/company.json. 	22.1.2022 	20:25:09 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 1, first value: 'IN210001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	22.1.2022 	20:26:41 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT co.record_id FROM company co WHERE co.company_id <> '' INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.email, co.info FROM company co  WHERE co.company_id <> ''  ORDER BY co.company_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 159, first value: '0001'
 - query name: new:form/nc/erp-sync/query/company.json. 	22.1.2022 	20:26:44 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 1, first value: 'IN210001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	22.1.2022 	20:28:58 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT co.record_id FROM company co WHERE co.company_id <> '' INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.email, co.info FROM company co  WHERE co.company_id <> ''  ORDER BY co.company_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 159, first value: '0001'
 - query name: new:form/nc/erp-sync/query/company.json. 	22.1.2022 	20:29:02 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 1, first value: 'IN210001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	22.1.2022 	20:32:20 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT co.record_id FROM company co WHERE co.company_id <> '' INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.email, co.info FROM company co  WHERE co.company_id <> ''  ORDER BY co.company_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 159, first value: '0001'
 - query name: new:form/nc/erp-sync/query/company.json. 	22.1.2022 	20:32:45 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

*** tcp close for sock 81, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 874 bytes ***. 	22.1.2022 	20:32:55 	lx 	(11. Tcp Server 2)

closing socket '81'. 	22.1.2022 	20:32:55 	lx 	(11. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 1, first value: 'IN210001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	22.1.2022 	20:33:53 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT co.record_id FROM company co WHERE co.company_id <> '' INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.email, co.info FROM company co  WHERE co.company_id <> ''  ORDER BY co.company_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 159, first value: '0001'
 - query name: new:form/nc/erp-sync/query/company.json. 	22.1.2022 	20:33:58 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 1, first value: 'IN210001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	22.1.2022 	20:38:46 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT co.record_id FROM company co WHERE co.company_id <> '' INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.email, co.info FROM company co  WHERE co.company_id <> ''  ORDER BY co.company_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 159, first value: '0001'
 - query name: new:form/nc/erp-sync/query/company.json. 	22.1.2022 	20:38:52 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 1, first value: 'IN210001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	22.1.2022 	20:39:21 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT co.record_id FROM company co WHERE co.company_id <> '' INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.email, co.info FROM company co  WHERE co.company_id <> ''  ORDER BY co.company_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 159, first value: '0001'
 - query name: new:form/nc/erp-sync/query/company.json. 	22.1.2022 	20:39:25 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT co.record_id FROM company co WHERE co.company_id <> '' INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.email, co.info FROM company co  WHERE co.company_id <> ''  ORDER BY co.company_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 159, first value: '0001'
 - query name: new:form/nc/erp-sync/query/company.json. 	22.1.2022 	20:40:36 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 1, first value: 'IN210001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	22.1.2022 	20:43:12 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT co.record_id FROM company co WHERE co.company_id <> '' INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.email, co.info FROM company co  WHERE co.company_id <> ''  ORDER BY co.company_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 159, first value: '0001'
 - query name: new:form/nc/erp-sync/query/company.json. 	22.1.2022 	20:43:20 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 1, first value: 'IN210001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	22.1.2022 	20:43:31 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT co.record_id FROM company co WHERE co.company_id <> '' INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.email, co.info FROM company co  WHERE co.company_id <> ''  ORDER BY co.company_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8
 - result _lx_atExe1 size: 159, first value: '0001'
 - query name: new:form/nc/erp-sync/query/company.json. 	22.1.2022 	20:43:33 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

*** tcp close for sock 81, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 874 bytes ***. 	22.1.2022 	20:49:47 	lx 	(11. Tcp Server 2)

closing socket '81'. 	22.1.2022 	20:49:47 	lx 	(11. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 1, first value: 'IN210001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	22.1.2022 	20:50:02 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

*** tcp close for sock 81, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 1 034 bytes ***. 	22.1.2022 	20:50:25 	lx 	(11. Tcp Server 2)

closing socket '81'. 	22.1.2022 	20:50:25 	lx 	(11. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 1, first value: 'IN210001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	22.1.2022 	20:50:29 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 1, first value: 'IN210001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	22.1.2022 	20:50:40 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 1, first value: 'IN210001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	22.1.2022 	20:50:57 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 1, first value: 'IN210001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	22.1.2022 	20:51:06 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 1, first value: 'IN210001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	22.1.2022 	20:51:06 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 1, first value: 'IN210001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	22.1.2022 	20:51:06 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT pr.record_id FROM product pr WHERE pr.product_id <> '' INTO :_lx_atExe1
 - original query: SELECT pr.product_id, pr.transfer_id, pr.name, pr.explanation, pr.sales_price__unit, pr.stock_balance__unit, pr.minimum_stock, pr.ean_code, pr.info, pr.record_id FROM product pr  WHERE pr.product_id <> ''  ORDER BY pr.product_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7
 - result _lx_atExe1 size: 4062, first value: '0002'
 - query name: new:form/nc/erp-sync/moloni/query-local/product-by-order-row.json. 	22.1.2022 	20:51:17 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

 -- tcp answer 80, send count: 4, loop count: 3, bytes sent 315485 / 315485, 0 remaining, total send time 6 µs. 	22.1.2022 	20:51:18 	lx 	(11. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 1, first value: 'IN210001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	22.1.2022 	20:51:19 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 1, first value: 'IN210001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	22.1.2022 	20:53:45 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 1, first value: 'IN210001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	22.1.2022 	20:53:46 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 1, first value: 'IN210001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	22.1.2022 	20:53:49 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 1, first value: 'IN210001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	22.1.2022 	20:53:49 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 1, first value: 'IN210001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	22.1.2022 	20:53:49 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT inr.record_id FROM invoice_row inr LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id WHERE inv.record_id LIKE '20220107.070548.6u001.in\_ zzy03ccd3660435e03' ESCAPE '\' INTO :_lx_atExe1
 - original query: SELECT inr.invoice_id, inr.row_number, inr.product_id, pr.transfer_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price, inr.record_id FROM invoice_row inr  LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id  LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id  WHERE inv.record_id LIKE '20220107.070548.6u001.in\_  zzy03ccd3660435e03' ESCAPE '\'  ORDER BY inr.row_number  INTO :_lx_atExe1,:_lx_alExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_arExe4,:_lx_atExe5
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/moloni/query-local/order_row-invoice.json. 	22.1.2022 	20:53:51 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 1, first value: 'IN210001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	22.1.2022 	20:54:28 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 1, first value: 'IN210001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	22.1.2022 	20:54:28 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 1, first value: 'IN210001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	22.1.2022 	20:54:29 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT inr.record_id FROM invoice_row inr LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id WHERE inv.record_id LIKE '20220107.070548.6u001.in\_ zzy03ccd3660435e03' ESCAPE '\' INTO :_lx_atExe1
 - original query: SELECT inr.invoice_id, inr.row_number, inr.product_id, pr.transfer_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price, inr.record_id FROM invoice_row inr  LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id  LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id  WHERE inv.record_id LIKE '20220107.070548.6u001.in\_  zzy03ccd3660435e03' ESCAPE '\'  ORDER BY inr.row_number  INTO :_lx_atExe1,:_lx_alExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_arExe4,:_lx_atExe5
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/moloni/query-local/order_row-invoice.json. 	22.1.2022 	20:54:31 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 1, first value: 'IN210001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	22.1.2022 	20:54:56 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 1, first value: 'IN210001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	22.1.2022 	20:54:56 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 1, first value: 'IN210001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	22.1.2022 	20:54:56 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

Starting to stop tcp server 2, max. delay 1,7 seconds... 	22.1.2022 	21:04:11 	_lx_SERVER 	(6. tbl_ 5)

*** tcp close for sock 79, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	22.1.2022 	21:04:11 	lx 	(11. Tcp Server 2)

closing socket '79'. 	22.1.2022 	21:04:11 	lx 	(11. Tcp Server 2)

*** tcp close for sock 80, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	22.1.2022 	21:04:11 	lx 	(11. Tcp Server 2)

closing socket '80'. 	22.1.2022 	21:04:11 	lx 	(11. Tcp Server 2)

 -- Server statistics --
answerCount:          94
poll.fd_count:        1
pollCount:            311040
pollInCount:          101
pollOutCount:         0
pollCloseCount:       6
pollErrCount:         0
fd add/remove count:  9/8
totalBytesReceived:   93450
totalBytesSent:       557219. 	22.1.2022 	21:04:11 	lx 	(11. Tcp Server 2)

warning: socket type 'number' is not a table, socket number: 81
. 	22.1.2022 	21:04:11 	lx 	(11. Tcp Server 2)

closing socket '81'. 	22.1.2022 	21:04:11 	lx 	(11. Tcp Server 2)

poll.expand_fds, free old fds: cdata<struct pollfd *>: 0x0122983fd0. 	22.1.2022 	21:04:11 	lx 	(11. Tcp Server 2)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x0122983fd0, size: 400. 	22.1.2022 	21:04:11 	lx 	(11. Tcp Server 2)

--- server stopped ---. 	22.1.2022 	21:04:11 	lx 	(11. Tcp Server 2)

finalizer: free p1 	 cdata<void *>: 0x0122983fd0. 	22.1.2022 	21:04:12 	lx 	(11. Tcp Server 2)

Tcp server 2 stopped. 	22.1.2022 	21:04:12 	_lx_SERVER 	(11. Tcp Server 2)

Tcp server 2 starting. 	22.1.2022 	21:04:14 	_lx_SERVER 	(11. Tcp Server 2)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	22.1.2022 	21:04:15 	lx 	(11. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	22.1.2022 	21:04:16 	lx 	(11. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	22.1.2022 	21:04:16 	lx 	(11. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	22.1.2022 	21:04:16 	lx 	(11. Tcp Server 2)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	22.1.2022 	21:04:16 	lx 	(11. Tcp Server 2)

  database connect time: 0.0004 seconds. 	22.1.2022 	21:04:16 	lx 	(11. Tcp Server 2)

* connect: connection changed to 'postgre-demo/fi_demo'. 	22.1.2022 	21:04:16 	lx 	(11. Tcp Server 2)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	22.1.2022 	21:04:16 	lx 	(11. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	22.1.2022 	21:04:16 	lx 	(11. Tcp Server 2)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x01229de390, size: 400. 	22.1.2022 	21:04:16 	lx 	(11. Tcp Server 2)

********************* /Users/pasi/nc/nc-server/ *********************. 	22.1.2022 	21:04:16 	lx 	(11. Tcp Server 2)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'. 	22.1.2022 	21:04:16 	lx 	(11. Tcp Server 2)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	22.1.2022 	21:04:16 	lx 	(11. Tcp Server 2)

1. Loading plugin: nc/worker/auth_worker. 	22.1.2022 	21:04:16 	lx 	(11. Tcp Server 2)

2. Loading plugin: nc/worker/query_worker. 	22.1.2022 	21:04:16 	lx 	(11. Tcp Server 2)

3. Loading plugin: nc/worker/query4d_worker. 	22.1.2022 	21:04:16 	lx 	(11. Tcp Server 2)

4. Loading plugin: nc/worker/call4d_worker. 	22.1.2022 	21:04:16 	lx 	(11. Tcp Server 2)

All plugins have been loaded. 	22.1.2022 	21:04:16 	lx 	(11. Tcp Server 2)

* cached preference files: demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/4d.json. 	22.1.2022 	21:04:16 	lx 	(11. Tcp Server 2)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''. 	22.1.2022 	21:04:16 	lx 	(11. Tcp Server 2)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	22.1.2022 	21:04:16 	lx 	(11. Tcp Server 2)

Mac address: f84d896921dc. 	22.1.2022 	21:04:16 	lx 	(11. Tcp Server 2)

TLS certificate files: /Users/pasi/nc/nc-server/preference/cert/cert.pem, /Users/pasi/nc/nc-server/preference/cert/privkey.pem. 	22.1.2022 	21:04:16 	lx 	(11. Tcp Server 2)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.2:5949/
                          https://127.0.0.1:5949/, https://192.168.32.2:5949/. 	22.1.2022 	21:04:16 	lx 	(11. Tcp Server 2)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.2:5949/. 	22.1.2022 	21:04:16 	lx 	(11. Tcp Server 2)

--- server started in 0.0040 seconds, 2022-01-22 21:04:16, used memory 3115.9 kb --- 	 5. 	22.1.2022 	21:04:16 	lx 	(11. Tcp Server 2)

OSX arm64, using: rapidjson-arm, lfs-ffi. 	22.1.2022 	21:04:16 	lx 	(11. Tcp Server 2)

1. uri: HTTP, POST '/rest/nc/query/sql4d' 2022-01-22 21:04:31
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 759
Content-Uncompressed-Length: 1133

LZ4. 	22.1.2022 	21:04:31 	lx 	(11. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	22.1.2022 	21:04:31 	lx 	(11. Tcp Server 2)

    Connected to: 'Manageri v12 plg4d local, , database: plg4d, user: manage_demo'. 	22.1.2022 	21:04:31 	lx 	(11. Tcp Server 2)

  database connect time: 0.0002 seconds. 	22.1.2022 	21:04:31 	lx 	(11. Tcp Server 2)

* connect: connection changed from 'postgre-demo/fi_demo' to 'plg4d/plg4d'. 	22.1.2022 	21:04:31 	lx 	(11. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 1, first value: 'IN210001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	22.1.2022 	21:04:31 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

tagNames - plg4d array4dToArrayTable = {
 [1] = "inv.invoice_id";
 [2] = "inv.your_reference";
 [3] = "inv.customer_project";
 [4] = "inv.state";
 [5] = "inv.company_id";
 [6] = "inv.date_";
 [7] = "inv.due_date";
 [8] = "inv.price_total";
 [9] = "inv.vat_total";
 [10] = "inv.currency_id";
 [11] = "inv.terms_of_payment_id";
 [12] = "inv.invoice_text";
 [13] = "inv.type_";
 [14] = "inv.record_id";
};. 	22.1.2022 	21:04:31 	lx 	(11. Tcp Server 2)

option - plg4d array4dToArrayTable = {
 ["table_prefix"] = "ord";
 ["sql"] = "SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id\
 FROM invoice inv\
 WHERE inv.invoice_id <> ''\
 ORDER BY inv.invoice_id";
 ["show_sql"] = true;
 ["field"] = {
  [1] = "inv.invoice_id";
  [2] = "inv.your_reference";
  [3] = "inv.customer_project";
  [4] = "inv.state";
  [5] = "inv.company_id";
  [6] = "inv.date_";
  [7] = "inv.due_date";
  [8] = "inv.price_total";
  [9] = "inv.vat_total";
  [10] = "inv.currency_id";
  [11] = "inv.terms_of_payment_id";
  [12] = "inv.invoice_text";
  [13] = "inv.type_";
  [14] = "inv.record_id";
 };
 ["query_name"] = "new:form/nc/erp-sync/query/order-invoice.json";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
  [3] = "string";
  [4] = "integer";
  [5] = "string";
  [6] = "date";
  [7] = "date";
  [8] = "number";
  [9] = "number";
  [10] = "string";
  [11] = "string";
  [12] = "string";
  [13] = "string";
  [14] = "string";
 };
 ["trace"] = true;
 ["database"] = "plg4d";
};. 	22.1.2022 	21:04:31 	lx 	(11. Tcp Server 2)

 1. answer time: 00:00:00.00154
  
SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id
 FROM invoice inv
 WHERE inv.invoice_id <> ''
 ORDER BY inv.invoice_id. 	22.1.2022 	21:04:31 	lx 	(11. Tcp Server 2)

Starting to stop tcp server 2, max. delay 1,7 seconds... 	22.1.2022 	21:12:54 	_lx_SERVER 	(6. tbl_ 5)

*** tcp close for sock 80, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	22.1.2022 	21:12:54 	lx 	(11. Tcp Server 2)

closing socket '80'. 	22.1.2022 	21:12:54 	lx 	(11. Tcp Server 2)

*** tcp close for sock 81, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	22.1.2022 	21:12:54 	lx 	(11. Tcp Server 2)

closing socket '81'. 	22.1.2022 	21:12:54 	lx 	(11. Tcp Server 2)

 -- Server statistics --
answerCount:          1
poll.fd_count:        2
pollCount:            22640
pollInCount:          3
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  4/2
totalBytesReceived:   1030
totalBytesSent:       820. 	22.1.2022 	21:12:54 	lx 	(11. Tcp Server 2)

warning: socket type 'number' is not a table, socket number: 83
. 	22.1.2022 	21:12:54 	lx 	(11. Tcp Server 2)

closing socket '83'. 	22.1.2022 	21:12:54 	lx 	(11. Tcp Server 2)

warning: socket type 'number' is not a table, socket number: 82
. 	22.1.2022 	21:12:54 	lx 	(11. Tcp Server 2)

closing socket '82'. 	22.1.2022 	21:12:54 	lx 	(11. Tcp Server 2)

poll.expand_fds, free old fds: cdata<struct pollfd *>: 0x01229de390. 	22.1.2022 	21:12:54 	lx 	(11. Tcp Server 2)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x01229de390, size: 400. 	22.1.2022 	21:12:54 	lx 	(11. Tcp Server 2)

--- server stopped ---. 	22.1.2022 	21:12:54 	lx 	(11. Tcp Server 2)

finalizer: free p1 	 cdata<void *>: 0x01229de390. 	22.1.2022 	21:12:54 	lx 	(11. Tcp Server 2)

Tcp server 2 stopped. 	22.1.2022 	21:12:54 	_lx_SERVER 	(11. Tcp Server 2)

Tcp server 2 starting. 	22.1.2022 	21:12:57 	_lx_SERVER 	(11. Tcp Server 2)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	22.1.2022 	21:12:59 	lx 	(11. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	22.1.2022 	21:12:59 	lx 	(11. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	22.1.2022 	21:12:59 	lx 	(11. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	22.1.2022 	21:12:59 	lx 	(11. Tcp Server 2)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	22.1.2022 	21:12:59 	lx 	(11. Tcp Server 2)

  database connect time: 0.0002 seconds. 	22.1.2022 	21:12:59 	lx 	(11. Tcp Server 2)

* connect: connection changed to 'postgre-demo/fi_demo'. 	22.1.2022 	21:12:59 	lx 	(11. Tcp Server 2)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	22.1.2022 	21:12:59 	lx 	(11. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	22.1.2022 	21:12:59 	lx 	(11. Tcp Server 2)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x0145939f30, size: 400. 	22.1.2022 	21:12:59 	lx 	(11. Tcp Server 2)

********************* /Users/pasi/nc/nc-server/ *********************. 	22.1.2022 	21:12:59 	lx 	(11. Tcp Server 2)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'. 	22.1.2022 	21:12:59 	lx 	(11. Tcp Server 2)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	22.1.2022 	21:12:59 	lx 	(11. Tcp Server 2)

1. Loading plugin: nc/worker/auth_worker. 	22.1.2022 	21:12:59 	lx 	(11. Tcp Server 2)

2. Loading plugin: nc/worker/query_worker. 	22.1.2022 	21:12:59 	lx 	(11. Tcp Server 2)

3. Loading plugin: nc/worker/query4d_worker. 	22.1.2022 	21:12:59 	lx 	(11. Tcp Server 2)

4. Loading plugin: nc/worker/call4d_worker. 	22.1.2022 	21:12:59 	lx 	(11. Tcp Server 2)

All plugins have been loaded. 	22.1.2022 	21:12:59 	lx 	(11. Tcp Server 2)

* cached preference files: demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/option.json. 	22.1.2022 	21:12:59 	lx 	(11. Tcp Server 2)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''. 	22.1.2022 	21:12:59 	lx 	(11. Tcp Server 2)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	22.1.2022 	21:12:59 	lx 	(11. Tcp Server 2)

Mac address: f84d896921dc. 	22.1.2022 	21:12:59 	lx 	(11. Tcp Server 2)

TLS certificate files: /Users/pasi/nc/nc-server/preference/cert/cert.pem, /Users/pasi/nc/nc-server/preference/cert/privkey.pem. 	22.1.2022 	21:12:59 	lx 	(11. Tcp Server 2)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.2:5949/
                          https://127.0.0.1:5949/, https://192.168.32.2:5949/. 	22.1.2022 	21:12:59 	lx 	(11. Tcp Server 2)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.2:5949/. 	22.1.2022 	21:12:59 	lx 	(11. Tcp Server 2)

--- server started in 0.0017 seconds, 2022-01-22 21:12:59, used memory 3116.2 kb --- 	 5. 	22.1.2022 	21:12:59 	lx 	(11. Tcp Server 2)

OSX arm64, using: rapidjson-arm, lfs-ffi. 	22.1.2022 	21:12:59 	lx 	(11. Tcp Server 2)

1. uri: HTTP, POST '/rest/nc/query/sql4d' 2022-01-22 21:13:17
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 759
Content-Uncompressed-Length: 1133

LZ4. 	22.1.2022 	21:13:17 	lx 	(11. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	22.1.2022 	21:13:17 	lx 	(11. Tcp Server 2)

    Connected to: 'Manageri v12 plg4d local, , database: plg4d, user: manage_demo'. 	22.1.2022 	21:13:17 	lx 	(11. Tcp Server 2)

  database connect time: 0.0002 seconds. 	22.1.2022 	21:13:17 	lx 	(11. Tcp Server 2)

* connect: connection changed from 'postgre-demo/fi_demo' to 'plg4d/plg4d'. 	22.1.2022 	21:13:17 	lx 	(11. Tcp Server 2)

querySql4d() param = {
 ["table_prefix"] = "ord";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
  [3] = "string";
  [4] = "integer";
  [5] = "string";
  [6] = "date";
  [7] = "date";
  [8] = "number";
  [9] = "number";
  [10] = "string";
  [11] = "string";
  [12] = "string";
  [13] = "string";
  [14] = "string";
 };
 ["field"] = {
  [1] = "inv.invoice_id";
  [2] = "inv.your_reference";
  [3] = "inv.customer_project";
  [4] = "inv.state";
  [5] = "inv.company_id";
  [6] = "inv.date_";
  [7] = "inv.due_date";
  [8] = "inv.price_total";
  [9] = "inv.vat_total";
  [10] = "inv.currency_id";
  [11] = "inv.terms_of_payment_id";
  [12] = "inv.invoice_text";
  [13] = "inv.type_";
  [14] = "inv.record_id";
 };
 ["sql"] = "SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id\
 FROM invoice inv\
 WHERE inv.invoice_id <> ''\
 ORDER BY inv.invoice_id";
 ["show_sql"] = true;
 ["query_name"] = "new:form/nc/erp-sync/query/order-invoice.json";
};. 	22.1.2022 	21:13:17 	lx 	(11. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 1, first value: 'IN210001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	22.1.2022 	21:13:17 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

tagNames - plg4d array4dToArrayTable = {
 [1] = "inv.invoice_id";
 [2] = "inv.your_reference";
 [3] = "inv.customer_project";
 [4] = "inv.state";
 [5] = "inv.company_id";
 [6] = "inv.date_";
 [7] = "inv.due_date";
 [8] = "inv.price_total";
 [9] = "inv.vat_total";
 [10] = "inv.currency_id";
 [11] = "inv.terms_of_payment_id";
 [12] = "inv.invoice_text";
 [13] = "inv.type_";
 [14] = "inv.record_id";
};. 	22.1.2022 	21:13:17 	lx 	(11. Tcp Server 2)

option - plg4d array4dToArrayTable = {
 ["database"] = "plg4d";
 ["table_prefix"] = "ord";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
  [3] = "string";
  [4] = "integer";
  [5] = "string";
  [6] = "date";
  [7] = "date";
  [8] = "number";
  [9] = "number";
  [10] = "string";
  [11] = "string";
  [12] = "string";
  [13] = "string";
  [14] = "string";
 };
 ["field"] = {
  [1] = "inv.invoice_id";
  [2] = "inv.your_reference";
  [3] = "inv.customer_project";
  [4] = "inv.state";
  [5] = "inv.company_id";
  [6] = "inv.date_";
  [7] = "inv.due_date";
  [8] = "inv.price_total";
  [9] = "inv.vat_total";
  [10] = "inv.currency_id";
  [11] = "inv.terms_of_payment_id";
  [12] = "inv.invoice_text";
  [13] = "inv.type_";
  [14] = "inv.record_id";
 };
 ["sql"] = "SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id\
 FROM invoice inv\
 WHERE inv.invoice_id <> ''\
 ORDER BY inv.invoice_id";
 ["show_sql"] = true;
 ["trace"] = true;
 ["query_name"] = "new:form/nc/erp-sync/query/order-invoice.json";
};. 	22.1.2022 	21:13:17 	lx 	(11. Tcp Server 2)

 1. answer time: 00:00:00.00184
  
SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id
 FROM invoice inv
 WHERE inv.invoice_id <> ''
 ORDER BY inv.invoice_id. 	22.1.2022 	21:13:17 	lx 	(11. Tcp Server 2)

*** tcp close for sock 83, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	22.1.2022 	21:18:10 	lx 	(11. Tcp Server 2)

closing socket '83'. 	22.1.2022 	21:18:10 	lx 	(11. Tcp Server 2)

*** tcp close for sock 84, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 1 030 bytes ***. 	22.1.2022 	21:18:10 	lx 	(11. Tcp Server 2)

closing socket '84'. 	22.1.2022 	21:18:10 	lx 	(11. Tcp Server 2)

*** tcp close for sock 83, type 'nil', protocol 'nil', reason: 'POLLHUP', request length: (no request) bytes ***. 	22.1.2022 	21:19:20 	lx 	(11. Tcp Server 2)

closing socket '83'. 	22.1.2022 	21:19:20 	lx 	(11. Tcp Server 2)

querySql4d() param = {
 ["query_name"] = "new:form/nc/erp-sync/query/order-invoice.json";
 ["local_field"] = {
  [1] = "ord.order_id";
  [2] = "ord.your_reference";
  [3] = "ord.json_data.customer_project";
  [4] = "ord.order_state";
  [5] = "ord.invoicing_company_id";
  [6] = "ord.order_date";
  [7] = "ord.due_date";
  [8] = "ord.price_without_vat";
  [9] = "ord.vat_price";
  [10] = "ord.currency_id";
  [11] = "ord.terms_of_payment_id";
  [12] = "ord.note";
  [13] = "ord.order_type";
  [14] = "ord.record_id";
 };
 ["field"] = {
  [1] = "inv.invoice_id";
  [2] = "inv.your_reference";
  [3] = "inv.customer_project";
  [4] = "inv.state";
  [5] = "inv.company_id";
  [6] = "inv.date_";
  [7] = "inv.due_date";
  [8] = "inv.price_total";
  [9] = "inv.vat_total";
  [10] = "inv.currency_id";
  [11] = "inv.terms_of_payment_id";
  [12] = "inv.invoice_text";
  [13] = "inv.type_";
  [14] = "inv.record_id";
 };
 ["sql"] = "SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id\
 FROM invoice inv\
 WHERE inv.invoice_id <> ''\
 ORDER BY inv.invoice_id";
 ["show_sql"] = true;
 ["table_prefix"] = "ord";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
  [3] = "string";
  [4] = "integer";
  [5] = "string";
  [6] = "date";
  [7] = "date";
  [8] = "number";
  [9] = "number";
  [10] = "string";
  [11] = "string";
  [12] = "string";
  [13] = "string";
  [14] = "string";
 };
};. 	22.1.2022 	21:19:32 	lx 	(11. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 1, first value: 'IN210001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	22.1.2022 	21:19:32 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

tagNames - plg4d array4dToArrayTable = {
 [1] = "inv.invoice_id";
 [2] = "inv.your_reference";
 [3] = "inv.customer_project";
 [4] = "inv.state";
 [5] = "inv.company_id";
 [6] = "inv.date_";
 [7] = "inv.due_date";
 [8] = "inv.price_total";
 [9] = "inv.vat_total";
 [10] = "inv.currency_id";
 [11] = "inv.terms_of_payment_id";
 [12] = "inv.invoice_text";
 [13] = "inv.type_";
 [14] = "inv.record_id";
};. 	22.1.2022 	21:19:32 	lx 	(11. Tcp Server 2)

option - plg4d array4dToArrayTable = {
 ["local_field"] = {
  [1] = "ord.order_id";
  [2] = "ord.your_reference";
  [3] = "ord.json_data.customer_project";
  [4] = "ord.order_state";
  [5] = "ord.invoicing_company_id";
  [6] = "ord.order_date";
  [7] = "ord.due_date";
  [8] = "ord.price_without_vat";
  [9] = "ord.vat_price";
  [10] = "ord.currency_id";
  [11] = "ord.terms_of_payment_id";
  [12] = "ord.note";
  [13] = "ord.order_type";
  [14] = "ord.record_id";
 };
 ["database"] = "plg4d";
 ["trace"] = true;
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
  [3] = "string";
  [4] = "integer";
  [5] = "string";
  [6] = "date";
  [7] = "date";
  [8] = "number";
  [9] = "number";
  [10] = "string";
  [11] = "string";
  [12] = "string";
  [13] = "string";
  [14] = "string";
 };
 ["field"] = {
  [1] = "inv.invoice_id";
  [2] = "inv.your_reference";
  [3] = "inv.customer_project";
  [4] = "inv.state";
  [5] = "inv.company_id";
  [6] = "inv.date_";
  [7] = "inv.due_date";
  [8] = "inv.price_total";
  [9] = "inv.vat_total";
  [10] = "inv.currency_id";
  [11] = "inv.terms_of_payment_id";
  [12] = "inv.invoice_text";
  [13] = "inv.type_";
  [14] = "inv.record_id";
 };
 ["sql"] = "SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id\
 FROM invoice inv\
 WHERE inv.invoice_id <> ''\
 ORDER BY inv.invoice_id";
 ["query_name"] = "new:form/nc/erp-sync/query/order-invoice.json";
 ["show_sql"] = true;
 ["table_prefix"] = "ord";
};. 	22.1.2022 	21:19:32 	lx 	(11. Tcp Server 2)

querySql4d() param = {
 ["query_name"] = "new:form/nc/erp-sync/moloni/query-local/order_row-invoice.json";
 ["local_field"] = {
  [1] = "ordr.invoice_id";
  [2] = "ordr.row_number";
  [3] = "ordr.product_id";
  [4] = "pr.json_data.transfer_id";
  [5] = "ordr.description";
  [6] = "ordr.delivery_amount";
  [7] = "ordr.unit_price";
  [8] = "ordr.price_without_vat";
  [9] = "ordr.vat_price";
  [10] = "ordr.record_id";
 };
 ["field"] = {
  [1] = "inr.invoice_id";
  [2] = "inr.row_number";
  [3] = "inr.product_id";
  [4] = "pr.transfer_id";
  [5] = "inr.explanation";
  [6] = "inr.delivered_quantity";
  [7] = "inr.price__unit";
  [8] = "inr.price_total";
  [9] = "inr.vat_price";
  [10] = "inr.record_id";
 };
 ["sql"] = "SELECT inr.invoice_id, inr.row_number, inr.product_id, pr.transfer_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price, inr.record_id\
 FROM invoice_row inr\
 LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id\
 LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id\
 WHERE inv.record_id LIKE '20220107.070548.6u001.in\\_  zzy03ccd3660435e03' ESCAPE '\\'\
 ORDER BY inr.row_number";
 ["show_sql"] = true;
 ["table_prefix"] = "ordr";
 ["field_type"] = {
  [1] = "string";
  [2] = "integer";
  [3] = "string";
  [4] = "string";
  [5] = "string";
  [6] = "number";
  [7] = "number";
  [8] = "number";
  [9] = "number";
  [10] = "string";
 };
};. 	22.1.2022 	21:19:37 	lx 	(11. Tcp Server 2)

4D: SELECT inr.record_id FROM invoice_row inr LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id WHERE inv.record_id LIKE '20220107.070548.6u001.in\_ zzy03ccd3660435e03' ESCAPE '\' INTO :_lx_atExe1
 - original query: SELECT inr.invoice_id, inr.row_number, inr.product_id, pr.transfer_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price, inr.record_id FROM invoice_row inr  LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id  LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id  WHERE inv.record_id LIKE '20220107.070548.6u001.in\_  zzy03ccd3660435e03' ESCAPE '\'  ORDER BY inr.row_number  INTO :_lx_atExe1,:_lx_alExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_arExe4,:_lx_atExe5
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/moloni/query-local/order_row-invoice.json. 	22.1.2022 	21:19:37 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

tagNames - plg4d array4dToArrayTable = {
 [1] = "inr.invoice_id";
 [2] = "inr.row_number";
 [3] = "inr.product_id";
 [4] = "pr.transfer_id";
 [5] = "inr.explanation";
 [6] = "inr.delivered_quantity";
 [7] = "inr.price__unit";
 [8] = "inr.price_total";
 [9] = "inr.vat_price";
 [10] = "inr.record_id";
};. 	22.1.2022 	21:19:37 	lx 	(11. Tcp Server 2)

option - plg4d array4dToArrayTable = {
 ["local_field"] = {
  [1] = "ordr.invoice_id";
  [2] = "ordr.row_number";
  [3] = "ordr.product_id";
  [4] = "pr.json_data.transfer_id";
  [5] = "ordr.description";
  [6] = "ordr.delivery_amount";
  [7] = "ordr.unit_price";
  [8] = "ordr.price_without_vat";
  [9] = "ordr.vat_price";
  [10] = "ordr.record_id";
 };
 ["database"] = "plg4d";
 ["trace"] = true;
 ["field_type"] = {
  [1] = "string";
  [2] = "integer";
  [3] = "string";
  [4] = "string";
  [5] = "string";
  [6] = "number";
  [7] = "number";
  [8] = "number";
  [9] = "number";
  [10] = "string";
 };
 ["field"] = {
  [1] = "inr.invoice_id";
  [2] = "inr.row_number";
  [3] = "inr.product_id";
  [4] = "pr.transfer_id";
  [5] = "inr.explanation";
  [6] = "inr.delivered_quantity";
  [7] = "inr.price__unit";
  [8] = "inr.price_total";
  [9] = "inr.vat_price";
  [10] = "inr.record_id";
 };
 ["sql"] = "SELECT inr.invoice_id, inr.row_number, inr.product_id, pr.transfer_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price, inr.record_id\
 FROM invoice_row inr\
 LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id\
 LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id\
 WHERE inv.record_id LIKE '20220107.070548.6u001.in\\_  zzy03ccd3660435e03' ESCAPE '\\'\
 ORDER BY inr.row_number";
 ["query_name"] = "new:form/nc/erp-sync/moloni/query-local/order_row-invoice.json";
 ["show_sql"] = true;
 ["table_prefix"] = "ordr";
};. 	22.1.2022 	21:19:37 	lx 	(11. Tcp Server 2)

*** tcp close for sock 83, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 1 233 bytes ***. 	22.1.2022 	21:25:13 	lx 	(11. Tcp Server 2)

closing socket '83'. 	22.1.2022 	21:25:13 	lx 	(11. Tcp Server 2)

querySql4d() param = {
 ["show_sql"] = true;
 ["local_field"] = {
  [1] = "ord.order_id";
  [2] = "ord.your_reference";
  [3] = "ord.json_data.customer_project";
  [4] = "ord.order_state";
  [5] = "ord.invoicing_company_id";
  [6] = "ord.order_date";
  [7] = "ord.due_date";
  [8] = "ord.price_without_vat";
  [9] = "ord.vat_price";
  [10] = "ord.currency_id";
  [11] = "ord.terms_of_payment_id";
  [12] = "ord.note";
  [13] = "ord.order_type";
  [14] = "ord.record_id";
 };
 ["field"] = {
  [1] = "inv.invoice_id";
  [2] = "inv.your_reference";
  [3] = "inv.customer_project";
  [4] = "inv.state";
  [5] = "inv.company_id";
  [6] = "inv.date_";
  [7] = "inv.due_date";
  [8] = "inv.price_total";
  [9] = "inv.vat_total";
  [10] = "inv.currency_id";
  [11] = "inv.terms_of_payment_id";
  [12] = "inv.invoice_text";
  [13] = "inv.type_";
  [14] = "inv.record_id";
 };
 ["sql"] = "SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id\
 FROM invoice inv\
 WHERE inv.invoice_id <> ''\
 ORDER BY inv.invoice_id";
 ["query_name"] = "new:form/nc/erp-sync/query/order-invoice.json";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
  [3] = "string";
  [4] = "integer";
  [5] = "string";
  [6] = "date";
  [7] = "date";
  [8] = "number";
  [9] = "number";
  [10] = "string";
  [11] = "string";
  [12] = "string";
  [13] = "string";
  [14] = "string";
 };
 ["table_prefix"] = "ord";
};. 	22.1.2022 	21:25:27 	lx 	(11. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 1, first value: 'IN210001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	22.1.2022 	21:25:27 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

tagNames - plg4d array4dToArrayTable = {
 [1] = "inv.invoice_id";
 [2] = "inv.your_reference";
 [3] = "inv.customer_project";
 [4] = "inv.state";
 [5] = "inv.company_id";
 [6] = "inv.date_";
 [7] = "inv.due_date";
 [8] = "inv.price_total";
 [9] = "inv.vat_total";
 [10] = "inv.currency_id";
 [11] = "inv.terms_of_payment_id";
 [12] = "inv.invoice_text";
 [13] = "inv.type_";
 [14] = "inv.record_id";
};. 	22.1.2022 	21:25:27 	lx 	(11. Tcp Server 2)

option - plg4d array4dToArrayTable = {
 ["local_field"] = {
  [1] = "ord.order_id";
  [2] = "ord.your_reference";
  [3] = "ord.json_data.customer_project";
  [4] = "ord.order_state";
  [5] = "ord.invoicing_company_id";
  [6] = "ord.order_date";
  [7] = "ord.due_date";
  [8] = "ord.price_without_vat";
  [9] = "ord.vat_price";
  [10] = "ord.currency_id";
  [11] = "ord.terms_of_payment_id";
  [12] = "ord.note";
  [13] = "ord.order_type";
  [14] = "ord.record_id";
 };
 ["database"] = "plg4d";
 ["trace"] = true;
 ["table_prefix"] = "ord";
 ["field"] = {
  [1] = "inv.invoice_id";
  [2] = "inv.your_reference";
  [3] = "inv.customer_project";
  [4] = "inv.state";
  [5] = "inv.company_id";
  [6] = "inv.date_";
  [7] = "inv.due_date";
  [8] = "inv.price_total";
  [9] = "inv.vat_total";
  [10] = "inv.currency_id";
  [11] = "inv.terms_of_payment_id";
  [12] = "inv.invoice_text";
  [13] = "inv.type_";
  [14] = "inv.record_id";
 };
 ["sql"] = "SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id\
 FROM invoice inv\
 WHERE inv.invoice_id <> ''\
 ORDER BY inv.invoice_id";
 ["show_sql"] = true;
 ["query_name"] = "new:form/nc/erp-sync/query/order-invoice.json";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
  [3] = "string";
  [4] = "integer";
  [5] = "string";
  [6] = "date";
  [7] = "date";
  [8] = "number";
  [9] = "number";
  [10] = "string";
  [11] = "string";
  [12] = "string";
  [13] = "string";
  [14] = "string";
 };
};. 	22.1.2022 	21:25:27 	lx 	(11. Tcp Server 2)

querySql4d() param = {
 ["show_sql"] = true;
 ["local_field"] = {
  [1] = "ordr.invoice_id";
  [2] = "ordr.row_number";
  [3] = "ordr.product_id";
  [4] = "pr.json_data.transfer_id";
  [5] = "ordr.description";
  [6] = "ordr.delivery_amount";
  [7] = "ordr.unit_price";
  [8] = "ordr.price_without_vat";
  [9] = "ordr.vat_price";
  [10] = "ordr.record_id";
 };
 ["field"] = {
  [1] = "inr.invoice_id";
  [2] = "inr.row_number";
  [3] = "inr.product_id";
  [4] = "pr.transfer_id";
  [5] = "inr.explanation";
  [6] = "inr.delivered_quantity";
  [7] = "inr.price__unit";
  [8] = "inr.price_total";
  [9] = "inr.vat_price";
  [10] = "inr.record_id";
 };
 ["sql"] = "SELECT inr.invoice_id, inr.row_number, inr.product_id, pr.transfer_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price, inr.record_id\
 FROM invoice_row inr\
 LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id\
 LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id\
 WHERE inv.record_id LIKE '20220107.070548.6u001.in\\_  zzy03ccd3660435e03' ESCAPE '\\'\
 ORDER BY inr.row_number";
 ["query_name"] = "new:form/nc/erp-sync/moloni/query-local/order_row-invoice.json";
 ["field_type"] = {
  [1] = "string";
  [2] = "integer";
  [3] = "string";
  [4] = "string";
  [5] = "string";
  [6] = "number";
  [7] = "number";
  [8] = "number";
  [9] = "number";
  [10] = "string";
 };
 ["table_prefix"] = "ordr";
};. 	22.1.2022 	21:25:37 	lx 	(11. Tcp Server 2)

4D: SELECT inr.record_id FROM invoice_row inr LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id WHERE inv.record_id LIKE '20220107.070548.6u001.in\_ zzy03ccd3660435e03' ESCAPE '\' INTO :_lx_atExe1
 - original query: SELECT inr.invoice_id, inr.row_number, inr.product_id, pr.transfer_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price, inr.record_id FROM invoice_row inr  LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id  LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id  WHERE inv.record_id LIKE '20220107.070548.6u001.in\_  zzy03ccd3660435e03' ESCAPE '\'  ORDER BY inr.row_number  INTO :_lx_atExe1,:_lx_alExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_arExe4,:_lx_atExe5
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/moloni/query-local/order_row-invoice.json. 	22.1.2022 	21:25:37 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

tagNames - plg4d array4dToArrayTable = {
 [1] = "inr.invoice_id";
 [2] = "inr.row_number";
 [3] = "inr.product_id";
 [4] = "pr.transfer_id";
 [5] = "inr.explanation";
 [6] = "inr.delivered_quantity";
 [7] = "inr.price__unit";
 [8] = "inr.price_total";
 [9] = "inr.vat_price";
 [10] = "inr.record_id";
};. 	22.1.2022 	21:25:37 	lx 	(11. Tcp Server 2)

option - plg4d array4dToArrayTable = {
 ["local_field"] = {
  [1] = "ordr.invoice_id";
  [2] = "ordr.row_number";
  [3] = "ordr.product_id";
  [4] = "pr.json_data.transfer_id";
  [5] = "ordr.description";
  [6] = "ordr.delivery_amount";
  [7] = "ordr.unit_price";
  [8] = "ordr.price_without_vat";
  [9] = "ordr.vat_price";
  [10] = "ordr.record_id";
 };
 ["database"] = "plg4d";
 ["trace"] = true;
 ["table_prefix"] = "ordr";
 ["field"] = {
  [1] = "inr.invoice_id";
  [2] = "inr.row_number";
  [3] = "inr.product_id";
  [4] = "pr.transfer_id";
  [5] = "inr.explanation";
  [6] = "inr.delivered_quantity";
  [7] = "inr.price__unit";
  [8] = "inr.price_total";
  [9] = "inr.vat_price";
  [10] = "inr.record_id";
 };
 ["sql"] = "SELECT inr.invoice_id, inr.row_number, inr.product_id, pr.transfer_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price, inr.record_id\
 FROM invoice_row inr\
 LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id\
 LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id\
 WHERE inv.record_id LIKE '20220107.070548.6u001.in\\_  zzy03ccd3660435e03' ESCAPE '\\'\
 ORDER BY inr.row_number";
 ["show_sql"] = true;
 ["query_name"] = "new:form/nc/erp-sync/moloni/query-local/order_row-invoice.json";
 ["field_type"] = {
  [1] = "string";
  [2] = "integer";
  [3] = "string";
  [4] = "string";
  [5] = "string";
  [6] = "number";
  [7] = "number";
  [8] = "number";
  [9] = "number";
  [10] = "string";
 };
};. 	22.1.2022 	21:25:37 	lx 	(11. Tcp Server 2)

Starting to stop tcp server 2, max. delay 1,7 seconds... 	22.1.2022 	21:26:19 	_lx_SERVER 	(6. tbl_ 5)

*** tcp close for sock 81, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	22.1.2022 	21:26:19 	lx 	(11. Tcp Server 2)

closing socket '81'. 	22.1.2022 	21:26:19 	lx 	(11. Tcp Server 2)

*** tcp close for sock 82, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	22.1.2022 	21:26:19 	lx 	(11. Tcp Server 2)

closing socket '82'. 	22.1.2022 	21:26:19 	lx 	(11. Tcp Server 2)

 -- Server statistics --
answerCount:          5
poll.fd_count:        1
pollCount:            35280
pollInCount:          10
pollOutCount:         0
pollCloseCount:       4
pollErrCount:         0
fd add/remove count:  7/6
totalBytesReceived:   5882
totalBytesSent:       3391. 	22.1.2022 	21:26:19 	lx 	(11. Tcp Server 2)

warning: socket type 'number' is not a table, socket number: 83
. 	22.1.2022 	21:26:19 	lx 	(11. Tcp Server 2)

closing socket '83'. 	22.1.2022 	21:26:19 	lx 	(11. Tcp Server 2)

poll.expand_fds, free old fds: cdata<struct pollfd *>: 0x0145939f30. 	22.1.2022 	21:26:19 	lx 	(11. Tcp Server 2)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x0145939f30, size: 400. 	22.1.2022 	21:26:19 	lx 	(11. Tcp Server 2)

--- server stopped ---. 	22.1.2022 	21:26:19 	lx 	(11. Tcp Server 2)

finalizer: free p1 	 cdata<void *>: 0x0145939f30. 	22.1.2022 	21:26:19 	lx 	(11. Tcp Server 2)

Tcp server 2 stopped. 	22.1.2022 	21:26:19 	_lx_SERVER 	(11. Tcp Server 2)

Tcp server 2 starting. 	22.1.2022 	21:26:22 	_lx_SERVER 	(11. Tcp Server 2)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	22.1.2022 	21:26:23 	lx 	(11. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	22.1.2022 	21:26:23 	lx 	(11. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	22.1.2022 	21:26:23 	lx 	(11. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	22.1.2022 	21:26:23 	lx 	(11. Tcp Server 2)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	22.1.2022 	21:26:23 	lx 	(11. Tcp Server 2)

  database connect time: 0.0002 seconds. 	22.1.2022 	21:26:23 	lx 	(11. Tcp Server 2)

* connect: connection changed to 'postgre-demo/fi_demo'. 	22.1.2022 	21:26:23 	lx 	(11. Tcp Server 2)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	22.1.2022 	21:26:23 	lx 	(11. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	22.1.2022 	21:26:23 	lx 	(11. Tcp Server 2)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x01411b6590, size: 400. 	22.1.2022 	21:26:23 	lx 	(11. Tcp Server 2)

********************* /Users/pasi/nc/nc-server/ *********************. 	22.1.2022 	21:26:23 	lx 	(11. Tcp Server 2)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'. 	22.1.2022 	21:26:23 	lx 	(11. Tcp Server 2)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	22.1.2022 	21:26:23 	lx 	(11. Tcp Server 2)

1. Loading plugin: nc/worker/auth_worker. 	22.1.2022 	21:26:23 	lx 	(11. Tcp Server 2)

2. Loading plugin: nc/worker/query_worker. 	22.1.2022 	21:26:23 	lx 	(11. Tcp Server 2)

3. Loading plugin: nc/worker/query4d_worker. 	22.1.2022 	21:26:23 	lx 	(11. Tcp Server 2)

4. Loading plugin: nc/worker/call4d_worker. 	22.1.2022 	21:26:23 	lx 	(11. Tcp Server 2)

All plugins have been loaded. 	22.1.2022 	21:26:23 	lx 	(11. Tcp Server 2)

* cached preference files: demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/4d.json. 	22.1.2022 	21:26:23 	lx 	(11. Tcp Server 2)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''. 	22.1.2022 	21:26:23 	lx 	(11. Tcp Server 2)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	22.1.2022 	21:26:23 	lx 	(11. Tcp Server 2)

Mac address: f84d896921dc. 	22.1.2022 	21:26:23 	lx 	(11. Tcp Server 2)

TLS certificate files: /Users/pasi/nc/nc-server/preference/cert/cert.pem, /Users/pasi/nc/nc-server/preference/cert/privkey.pem. 	22.1.2022 	21:26:23 	lx 	(11. Tcp Server 2)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.2:5949/
                          https://127.0.0.1:5949/, https://192.168.32.2:5949/. 	22.1.2022 	21:26:23 	lx 	(11. Tcp Server 2)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.2:5949/. 	22.1.2022 	21:26:23 	lx 	(11. Tcp Server 2)

--- server started in 0.0019 seconds, 2022-01-22 21:26:23, used memory 3106.9 kb --- 	 5. 	22.1.2022 	21:26:23 	lx 	(11. Tcp Server 2)

OSX arm64, using: rapidjson-arm, lfs-ffi. 	22.1.2022 	21:26:23 	lx 	(11. Tcp Server 2)

1. uri: HTTP, POST '/rest/nc/query/sql4d' 2022-01-22 21:26:36
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 915
Content-Uncompressed-Length: 1423

LZ4. 	22.1.2022 	21:26:36 	lx 	(11. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	22.1.2022 	21:26:36 	lx 	(11. Tcp Server 2)

    Connected to: 'Manageri v12 plg4d local, , database: plg4d, user: manage_demo'. 	22.1.2022 	21:26:36 	lx 	(11. Tcp Server 2)

  database connect time: 0.0001 seconds. 	22.1.2022 	21:26:36 	lx 	(11. Tcp Server 2)

* connect: connection changed from 'postgre-demo/fi_demo' to 'plg4d/plg4d'. 	22.1.2022 	21:26:36 	lx 	(11. Tcp Server 2)

querySql4d() param = {
 ["field"] = {
  [1] = "inv.invoice_id";
  [2] = "inv.your_reference";
  [3] = "inv.customer_project";
  [4] = "inv.state";
  [5] = "inv.company_id";
  [6] = "inv.date_";
  [7] = "inv.due_date";
  [8] = "inv.price_total";
  [9] = "inv.vat_total";
  [10] = "inv.currency_id";
  [11] = "inv.terms_of_payment_id";
  [12] = "inv.invoice_text";
  [13] = "inv.type_";
  [14] = "inv.record_id";
 };
 ["show_sql"] = true;
 ["query_name"] = "new:form/nc/erp-sync/query/order-invoice.json";
 ["table_prefix"] = "ord";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
  [3] = "string";
  [4] = "integer";
  [5] = "string";
  [6] = "date";
  [7] = "date";
  [8] = "number";
  [9] = "number";
  [10] = "string";
  [11] = "string";
  [12] = "string";
  [13] = "string";
  [14] = "string";
 };
 ["local_field"] = {
  [1] = "ord.order_id";
  [2] = "ord.your_reference";
  [3] = "ord.json_data.customer_project";
  [4] = "ord.order_state";
  [5] = "ord.invoicing_company_id";
  [6] = "ord.order_date";
  [7] = "ord.due_date";
  [8] = "ord.price_without_vat";
  [9] = "ord.vat_price";
  [10] = "ord.currency_id";
  [11] = "ord.terms_of_payment_id";
  [12] = "ord.note";
  [13] = "ord.order_type";
  [14] = "ord.record_id";
 };
 ["sql"] = "SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id\
 FROM invoice inv\
 WHERE inv.invoice_id <> ''\
 ORDER BY inv.invoice_id";
};. 	22.1.2022 	21:26:36 	lx 	(11. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 1, first value: 'IN210001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	22.1.2022 	21:26:36 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

tagNames - plg4d array4dToArrayTable = {
 [1] = "inv.invoice_id";
 [2] = "inv.your_reference";
 [3] = "inv.customer_project";
 [4] = "inv.state";
 [5] = "inv.company_id";
 [6] = "inv.date_";
 [7] = "inv.due_date";
 [8] = "inv.price_total";
 [9] = "inv.vat_total";
 [10] = "inv.currency_id";
 [11] = "inv.terms_of_payment_id";
 [12] = "inv.invoice_text";
 [13] = "inv.type_";
 [14] = "inv.record_id";
};. 	22.1.2022 	21:26:36 	lx 	(11. Tcp Server 2)

option - plg4d array4dToArrayTable = {
 ["field"] = {
  [1] = "inv.invoice_id";
  [2] = "inv.your_reference";
  [3] = "inv.customer_project";
  [4] = "inv.state";
  [5] = "inv.company_id";
  [6] = "inv.date_";
  [7] = "inv.due_date";
  [8] = "inv.price_total";
  [9] = "inv.vat_total";
  [10] = "inv.currency_id";
  [11] = "inv.terms_of_payment_id";
  [12] = "inv.invoice_text";
  [13] = "inv.type_";
  [14] = "inv.record_id";
 };
 ["query_name"] = "new:form/nc/erp-sync/query/order-invoice.json";
 ["local_field"] = {
  [1] = "ord.order_id";
  [2] = "ord.your_reference";
  [3] = "ord.json_data.customer_project";
  [4] = "ord.order_state";
  [5] = "ord.invoicing_company_id";
  [6] = "ord.order_date";
  [7] = "ord.due_date";
  [8] = "ord.price_without_vat";
  [9] = "ord.vat_price";
  [10] = "ord.currency_id";
  [11] = "ord.terms_of_payment_id";
  [12] = "ord.note";
  [13] = "ord.order_type";
  [14] = "ord.record_id";
 };
 ["trace"] = true;
 ["database"] = "plg4d";
 ["table_prefix"] = "ord";
 ["show_sql"] = true;
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
  [3] = "string";
  [4] = "integer";
  [5] = "string";
  [6] = "date";
  [7] = "date";
  [8] = "number";
  [9] = "number";
  [10] = "string";
  [11] = "string";
  [12] = "string";
  [13] = "string";
  [14] = "string";
 };
 ["sql"] = "SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id\
 FROM invoice inv\
 WHERE inv.invoice_id <> ''\
 ORDER BY inv.invoice_id";
};. 	22.1.2022 	21:26:36 	lx 	(11. Tcp Server 2)

 1. answer time: 00:00:00.00110
  
SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id
 FROM invoice inv
 WHERE inv.invoice_id <> ''
 ORDER BY inv.invoice_id. 	22.1.2022 	21:26:36 	lx 	(11. Tcp Server 2)

querySql4d() param = {
 ["field"] = {
  [1] = "inv.invoice_id";
  [2] = "inv.your_reference";
  [3] = "inv.customer_project";
  [4] = "inv.state";
  [5] = "inv.company_id";
  [6] = "inv.date_";
  [7] = "inv.due_date";
  [8] = "inv.price_total";
  [9] = "inv.vat_total";
  [10] = "inv.currency_id";
  [11] = "inv.terms_of_payment_id";
  [12] = "inv.invoice_text";
  [13] = "inv.type_";
  [14] = "inv.record_id";
 };
 ["show_sql"] = true;
 ["query_name"] = "new:form/nc/erp-sync/query/order-invoice.json";
 ["table_prefix"] = "ord";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
  [3] = "string";
  [4] = "integer";
  [5] = "string";
  [6] = "date";
  [7] = "date";
  [8] = "number";
  [9] = "number";
  [10] = "string";
  [11] = "string";
  [12] = "string";
  [13] = "string";
  [14] = "string";
 };
 ["local_field"] = {
  [1] = "ord.order_id";
  [2] = "ord.your_reference";
  [3] = "ord.json_data.customer_project";
  [4] = "ord.order_state";
  [5] = "ord.invoicing_company_id";
  [6] = "ord.order_date";
  [7] = "ord.due_date";
  [8] = "ord.price_without_vat";
  [9] = "ord.vat_price";
  [10] = "ord.currency_id";
  [11] = "ord.terms_of_payment_id";
  [12] = "ord.note";
  [13] = "ord.order_type";
  [14] = "ord.record_id";
 };
 ["sql"] = "SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id\
 FROM invoice inv\
 WHERE inv.invoice_id <> ''\
 ORDER BY inv.invoice_id";
};. 	22.1.2022 	21:26:36 	lx 	(11. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 1, first value: 'IN210001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	22.1.2022 	21:26:36 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

tagNames - plg4d array4dToArrayTable = {
 [1] = "inv.invoice_id";
 [2] = "inv.your_reference";
 [3] = "inv.customer_project";
 [4] = "inv.state";
 [5] = "inv.company_id";
 [6] = "inv.date_";
 [7] = "inv.due_date";
 [8] = "inv.price_total";
 [9] = "inv.vat_total";
 [10] = "inv.currency_id";
 [11] = "inv.terms_of_payment_id";
 [12] = "inv.invoice_text";
 [13] = "inv.type_";
 [14] = "inv.record_id";
};. 	22.1.2022 	21:26:36 	lx 	(11. Tcp Server 2)

option - plg4d array4dToArrayTable = {
 ["field"] = {
  [1] = "inv.invoice_id";
  [2] = "inv.your_reference";
  [3] = "inv.customer_project";
  [4] = "inv.state";
  [5] = "inv.company_id";
  [6] = "inv.date_";
  [7] = "inv.due_date";
  [8] = "inv.price_total";
  [9] = "inv.vat_total";
  [10] = "inv.currency_id";
  [11] = "inv.terms_of_payment_id";
  [12] = "inv.invoice_text";
  [13] = "inv.type_";
  [14] = "inv.record_id";
 };
 ["query_name"] = "new:form/nc/erp-sync/query/order-invoice.json";
 ["local_field"] = {
  [1] = "ord.order_id";
  [2] = "ord.your_reference";
  [3] = "ord.json_data.customer_project";
  [4] = "ord.order_state";
  [5] = "ord.invoicing_company_id";
  [6] = "ord.order_date";
  [7] = "ord.due_date";
  [8] = "ord.price_without_vat";
  [9] = "ord.vat_price";
  [10] = "ord.currency_id";
  [11] = "ord.terms_of_payment_id";
  [12] = "ord.note";
  [13] = "ord.order_type";
  [14] = "ord.record_id";
 };
 ["trace"] = true;
 ["database"] = "plg4d";
 ["table_prefix"] = "ord";
 ["show_sql"] = true;
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
  [3] = "string";
  [4] = "integer";
  [5] = "string";
  [6] = "date";
  [7] = "date";
  [8] = "number";
  [9] = "number";
  [10] = "string";
  [11] = "string";
  [12] = "string";
  [13] = "string";
  [14] = "string";
 };
 ["sql"] = "SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id\
 FROM invoice inv\
 WHERE inv.invoice_id <> ''\
 ORDER BY inv.invoice_id";
};. 	22.1.2022 	21:26:36 	lx 	(11. Tcp Server 2)

querySql4d() param = {
 ["field"] = {
  [1] = "inv.invoice_id";
  [2] = "inv.your_reference";
  [3] = "inv.customer_project";
  [4] = "inv.state";
  [5] = "inv.company_id";
  [6] = "inv.date_";
  [7] = "inv.due_date";
  [8] = "inv.price_total";
  [9] = "inv.vat_total";
  [10] = "inv.currency_id";
  [11] = "inv.terms_of_payment_id";
  [12] = "inv.invoice_text";
  [13] = "inv.type_";
  [14] = "inv.record_id";
 };
 ["show_sql"] = true;
 ["query_name"] = "new:form/nc/erp-sync/query/order-invoice.json";
 ["table_prefix"] = "ord";
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
  [3] = "string";
  [4] = "integer";
  [5] = "string";
  [6] = "date";
  [7] = "date";
  [8] = "number";
  [9] = "number";
  [10] = "string";
  [11] = "string";
  [12] = "string";
  [13] = "string";
  [14] = "string";
 };
 ["local_field"] = {
  [1] = "ord.order_id";
  [2] = "ord.your_reference";
  [3] = "ord.json_data.customer_project";
  [4] = "ord.order_state";
  [5] = "ord.invoicing_company_id";
  [6] = "ord.order_date";
  [7] = "ord.due_date";
  [8] = "ord.price_without_vat";
  [9] = "ord.vat_price";
  [10] = "ord.currency_id";
  [11] = "ord.terms_of_payment_id";
  [12] = "ord.note";
  [13] = "ord.order_type";
  [14] = "ord.record_id";
 };
 ["sql"] = "SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id\
 FROM invoice inv\
 WHERE inv.invoice_id <> ''\
 ORDER BY inv.invoice_id";
};. 	22.1.2022 	21:26:36 	lx 	(11. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 1, first value: 'IN210001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	22.1.2022 	21:26:36 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

tagNames - plg4d array4dToArrayTable = {
 [1] = "inv.invoice_id";
 [2] = "inv.your_reference";
 [3] = "inv.customer_project";
 [4] = "inv.state";
 [5] = "inv.company_id";
 [6] = "inv.date_";
 [7] = "inv.due_date";
 [8] = "inv.price_total";
 [9] = "inv.vat_total";
 [10] = "inv.currency_id";
 [11] = "inv.terms_of_payment_id";
 [12] = "inv.invoice_text";
 [13] = "inv.type_";
 [14] = "inv.record_id";
};. 	22.1.2022 	21:26:36 	lx 	(11. Tcp Server 2)

option - plg4d array4dToArrayTable = {
 ["field"] = {
  [1] = "inv.invoice_id";
  [2] = "inv.your_reference";
  [3] = "inv.customer_project";
  [4] = "inv.state";
  [5] = "inv.company_id";
  [6] = "inv.date_";
  [7] = "inv.due_date";
  [8] = "inv.price_total";
  [9] = "inv.vat_total";
  [10] = "inv.currency_id";
  [11] = "inv.terms_of_payment_id";
  [12] = "inv.invoice_text";
  [13] = "inv.type_";
  [14] = "inv.record_id";
 };
 ["query_name"] = "new:form/nc/erp-sync/query/order-invoice.json";
 ["local_field"] = {
  [1] = "ord.order_id";
  [2] = "ord.your_reference";
  [3] = "ord.json_data.customer_project";
  [4] = "ord.order_state";
  [5] = "ord.invoicing_company_id";
  [6] = "ord.order_date";
  [7] = "ord.due_date";
  [8] = "ord.price_without_vat";
  [9] = "ord.vat_price";
  [10] = "ord.currency_id";
  [11] = "ord.terms_of_payment_id";
  [12] = "ord.note";
  [13] = "ord.order_type";
  [14] = "ord.record_id";
 };
 ["trace"] = true;
 ["database"] = "plg4d";
 ["table_prefix"] = "ord";
 ["show_sql"] = true;
 ["field_type"] = {
  [1] = "string";
  [2] = "string";
  [3] = "string";
  [4] = "integer";
  [5] = "string";
  [6] = "date";
  [7] = "date";
  [8] = "number";
  [9] = "number";
  [10] = "string";
  [11] = "string";
  [12] = "string";
  [13] = "string";
  [14] = "string";
 };
 ["sql"] = "SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id\
 FROM invoice inv\
 WHERE inv.invoice_id <> ''\
 ORDER BY inv.invoice_id";
};. 	22.1.2022 	21:26:36 	lx 	(11. Tcp Server 2)

querySql4d() param = {
 ["field"] = {
  [1] = "inr.invoice_id";
  [2] = "inr.row_number";
  [3] = "inr.product_id";
  [4] = "pr.transfer_id";
  [5] = "inr.explanation";
  [6] = "inr.delivered_quantity";
  [7] = "inr.price__unit";
  [8] = "inr.price_total";
  [9] = "inr.vat_price";
  [10] = "inr.record_id";
 };
 ["show_sql"] = true;
 ["query_name"] = "new:form/nc/erp-sync/moloni/query-local/order_row-invoice.json";
 ["table_prefix"] = "ordr";
 ["field_type"] = {
  [1] = "string";
  [2] = "integer";
  [3] = "string";
  [4] = "string";
  [5] = "string";
  [6] = "number";
  [7] = "number";
  [8] = "number";
  [9] = "number";
  [10] = "string";
 };
 ["local_field"] = {
  [1] = "ordr.invoice_id";
  [2] = "ordr.row_number";
  [3] = "ordr.product_id";
  [4] = "pr.json_data.transfer_id";
  [5] = "ordr.description";
  [6] = "ordr.delivery_amount";
  [7] = "ordr.unit_price";
  [8] = "ordr.price_without_vat";
  [9] = "ordr.vat_price";
  [10] = "ordr.record_id";
 };
 ["sql"] = "SELECT inr.invoice_id, inr.row_number, inr.product_id, pr.transfer_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price, inr.record_id\
 FROM invoice_row inr\
 LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id\
 LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id\
 WHERE inv.record_id LIKE '20220107.070548.6u001.in\\_  zzy03ccd3660435e03' ESCAPE '\\'\
 ORDER BY inr.row_number";
};. 	22.1.2022 	21:26:38 	lx 	(11. Tcp Server 2)

4D: SELECT inr.record_id FROM invoice_row inr LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id WHERE inv.record_id LIKE '20220107.070548.6u001.in\_ zzy03ccd3660435e03' ESCAPE '\' INTO :_lx_atExe1
 - original query: SELECT inr.invoice_id, inr.row_number, inr.product_id, pr.transfer_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price, inr.record_id FROM invoice_row inr  LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id  LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id  WHERE inv.record_id LIKE '20220107.070548.6u001.in\_  zzy03ccd3660435e03' ESCAPE '\'  ORDER BY inr.row_number  INTO :_lx_atExe1,:_lx_alExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_arExe4,:_lx_atExe5
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/moloni/query-local/order_row-invoice.json. 	22.1.2022 	21:26:38 	_lx_ExecuteSqlNew 	(11. Tcp Server 2)

tagNames - plg4d array4dToArrayTable = {
 [1] = "inr.invoice_id";
 [2] = "inr.row_number";
 [3] = "inr.product_id";
 [4] = "pr.transfer_id";
 [5] = "inr.explanation";
 [6] = "inr.delivered_quantity";
 [7] = "inr.price__unit";
 [8] = "inr.price_total";
 [9] = "inr.vat_price";
 [10] = "inr.record_id";
};. 	22.1.2022 	21:26:38 	lx 	(11. Tcp Server 2)

option - plg4d array4dToArrayTable = {
 ["field"] = {
  [1] = "inr.invoice_id";
  [2] = "inr.row_number";
  [3] = "inr.product_id";
  [4] = "pr.transfer_id";
  [5] = "inr.explanation";
  [6] = "inr.delivered_quantity";
  [7] = "inr.price__unit";
  [8] = "inr.price_total";
  [9] = "inr.vat_price";
  [10] = "inr.record_id";
 };
 ["query_name"] = "new:form/nc/erp-sync/moloni/query-local/order_row-invoice.json";
 ["local_field"] = {
  [1] = "ordr.invoice_id";
  [2] = "ordr.row_number";
  [3] = "ordr.product_id";
  [4] = "pr.json_data.transfer_id";
  [5] = "ordr.description";
  [6] = "ordr.delivery_amount";
  [7] = "ordr.unit_price";
  [8] = "ordr.price_without_vat";
  [9] = "ordr.vat_price";
  [10] = "ordr.record_id";
 };
 ["trace"] = true;
 ["database"] = "plg4d";
 ["table_prefix"] = "ordr";
 ["show_sql"] = true;
 ["field_type"] = {
  [1] = "string";
  [2] = "integer";
  [3] = "string";
  [4] = "string";
  [5] = "string";
  [6] = "number";
  [7] = "number";
  [8] = "number";
  [9] = "number";
  [10] = "string";
 };
 ["sql"] = "SELECT inr.invoice_id, inr.row_number, inr.product_id, pr.transfer_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price, inr.record_id\
 FROM invoice_row inr\
 LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id\
 LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id\
 WHERE inv.record_id LIKE '20220107.070548.6u001.in\\_  zzy03ccd3660435e03' ESCAPE '\\'\
 ORDER BY inr.row_number";
};. 	22.1.2022 	21:26:38 	lx 	(11. Tcp Server 2)

Starting to stop tcp server 2, max. delay 1,7 seconds... 	22.1.2022 	21:35:06 	_lx_SERVER 	(6. tbl_ 5)

*** tcp close for sock 82, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	22.1.2022 	21:35:06 	lx 	(11. Tcp Server 2)

closing socket '82'. 	22.1.2022 	21:35:06 	lx 	(11. Tcp Server 2)

*** tcp close for sock 83, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	22.1.2022 	21:35:06 	lx 	(11. Tcp Server 2)

closing socket '83'. 	22.1.2022 	21:35:06 	lx 	(11. Tcp Server 2)

 -- Server statistics --
answerCount:          4
poll.fd_count:        1
pollCount:            22808
pollInCount:          5
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  3/2
totalBytesReceived:   4784
totalBytesSent:       2996. 	22.1.2022 	21:35:06 	lx 	(11. Tcp Server 2)

warning: socket type 'number' is not a table, socket number: 84
. 	22.1.2022 	21:35:06 	lx 	(11. Tcp Server 2)

closing socket '84'. 	22.1.2022 	21:35:06 	lx 	(11. Tcp Server 2)

poll.expand_fds, free old fds: cdata<struct pollfd *>: 0x01411b6590. 	22.1.2022 	21:35:06 	lx 	(11. Tcp Server 2)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x01411b6590, size: 400. 	22.1.2022 	21:35:06 	lx 	(11. Tcp Server 2)

--- server stopped ---. 	22.1.2022 	21:35:06 	lx 	(11. Tcp Server 2)

finalizer: free p1 	 cdata<void *>: 0x01411b6590. 	22.1.2022 	21:35:06 	lx 	(11. Tcp Server 2)

Tcp server 2 stopped. 	22.1.2022 	21:35:06 	_lx_SERVER 	(11. Tcp Server 2)

Tcp server 2 starting. 	22.1.2022 	21:35:25 	_lx_SERVER 	(5. Tcp Server 2)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	22.1.2022 	21:35:27 	lx 	(5. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	22.1.2022 	21:35:27 	lx 	(5. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	22.1.2022 	21:35:27 	lx 	(5. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	22.1.2022 	21:35:27 	lx 	(5. Tcp Server 2)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	22.1.2022 	21:35:27 	lx 	(5. Tcp Server 2)

  database connect time: 0.0003 seconds. 	22.1.2022 	21:35:27 	lx 	(5. Tcp Server 2)

* connect: connection changed to 'postgre-demo/fi_demo'. 	22.1.2022 	21:35:27 	lx 	(5. Tcp Server 2)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	22.1.2022 	21:35:27 	lx 	(5. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	22.1.2022 	21:35:27 	lx 	(5. Tcp Server 2)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x01229ad260, size: 400. 	22.1.2022 	21:35:27 	lx 	(5. Tcp Server 2)

********************* /Users/pasi/nc/nc-server/ *********************. 	22.1.2022 	21:35:27 	lx 	(5. Tcp Server 2)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'. 	22.1.2022 	21:35:27 	lx 	(5. Tcp Server 2)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	22.1.2022 	21:35:27 	lx 	(5. Tcp Server 2)

1. Loading plugin: nc/worker/auth_worker. 	22.1.2022 	21:35:27 	lx 	(5. Tcp Server 2)

2. Loading plugin: nc/worker/query_worker. 	22.1.2022 	21:35:27 	lx 	(5. Tcp Server 2)

3. Loading plugin: nc/worker/query4d_worker. 	22.1.2022 	21:35:27 	lx 	(5. Tcp Server 2)

4. Loading plugin: nc/worker/call4d_worker. 	22.1.2022 	21:35:27 	lx 	(5. Tcp Server 2)

All plugins have been loaded. 	22.1.2022 	21:35:27 	lx 	(5. Tcp Server 2)

* cached preference files: demo-fi_demo-0 - system/option.json, demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/4d.json. 	22.1.2022 	21:35:27 	lx 	(5. Tcp Server 2)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''. 	22.1.2022 	21:35:27 	lx 	(5. Tcp Server 2)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	22.1.2022 	21:35:27 	lx 	(5. Tcp Server 2)

Mac address: f84d896921dc. 	22.1.2022 	21:35:27 	lx 	(5. Tcp Server 2)

TLS certificate files: /Users/pasi/nc/nc-server/preference/cert/cert.pem, /Users/pasi/nc/nc-server/preference/cert/privkey.pem. 	22.1.2022 	21:35:27 	lx 	(5. Tcp Server 2)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.2:5949/
                          https://127.0.0.1:5949/, https://192.168.32.2:5949/. 	22.1.2022 	21:35:27 	lx 	(5. Tcp Server 2)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.2:5949/. 	22.1.2022 	21:35:27 	lx 	(5. Tcp Server 2)

--- server started in 0.0022 seconds, 2022-01-22 21:35:27, used memory 3115.3 kb --- 	 5. 	22.1.2022 	21:35:27 	lx 	(5. Tcp Server 2)

OSX arm64, using: rapidjson-arm, lfs-ffi. 	22.1.2022 	21:35:27 	lx 	(5. Tcp Server 2)

1. uri: HTTP, POST '/rest/nc/query/sql4d' 2022-01-22 21:35:39
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 915
Content-Uncompressed-Length: 1423

LZ4. 	22.1.2022 	21:35:39 	lx 	(5. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	22.1.2022 	21:35:39 	lx 	(5. Tcp Server 2)

    Connected to: 'Manageri v12 plg4d local, , database: plg4d, user: manage_demo'. 	22.1.2022 	21:35:39 	lx 	(5. Tcp Server 2)

  database connect time: 0.0002 seconds. 	22.1.2022 	21:35:39 	lx 	(5. Tcp Server 2)

* connect: connection changed from 'postgre-demo/fi_demo' to 'plg4d/plg4d'. 	22.1.2022 	21:35:39 	lx 	(5. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 1, first value: 'IN210001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	22.1.2022 	21:35:39 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

 1. answer time: 00:00:00.00148
  
SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id
 FROM invoice inv
 WHERE inv.invoice_id <> ''
 ORDER BY inv.invoice_id. 	22.1.2022 	21:35:39 	lx 	(5. Tcp Server 2)

4D: SELECT inr.record_id FROM invoice_row inr LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id WHERE inv.record_id LIKE '20220107.070548.6u001.in\_ zzy03ccd3660435e03' ESCAPE '\' INTO :_lx_atExe1
 - original query: SELECT inr.invoice_id, inr.row_number, inr.product_id, pr.transfer_id, inr.explanation, inr.delivered_quantity, inr.price__unit, inr.price_total, inr.vat_price, inr.record_id FROM invoice_row inr  LEFT OUTER JOIN product pr ON pr.product_id = inr.product_id  LEFT OUTER JOIN invoice inv ON inv.invoice_id = inr.invoice_id  WHERE inv.record_id LIKE '20220107.070548.6u001.in\_  zzy03ccd3660435e03' ESCAPE '\'  ORDER BY inr.row_number  INTO :_lx_atExe1,:_lx_alExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3,:_lx_arExe4,:_lx_atExe5
 - result _lx_atExe1 size: 0
 - query name: new:form/nc/erp-sync/moloni/query-local/order_row-invoice.json. 	22.1.2022 	21:35:42 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 1, first value: 'IN210001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	22.1.2022 	21:35:53 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

4D: SELECT inv.record_id FROM invoice inv WHERE inv.invoice_id <> '' INTO :_lx_atExe1
 - original query: SELECT inv.invoice_id, inv.your_reference, inv.customer_project, inv.state, inv.company_id, inv.date_, inv.due_date, inv.price_total, inv.vat_total, inv.currency_id, inv.terms_of_payment_id, inv.invoice_text, inv.type_, inv.record_id FROM invoice inv  WHERE inv.invoice_id <> ''  ORDER BY inv.invoice_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_atExe4,:_lx_adExe1,:_lx_adExe2,:_lx_arExe1,:_lx_arExe2,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_atExe9
 - result _lx_atExe1 size: 1, first value: 'IN210001'
 - query name: new:form/nc/erp-sync/query/order-invoice.json. 	22.1.2022 	21:36:05 	_lx_ExecuteSqlNew 	(5. Tcp Server 2)

Starting to stop tcp server 2, max. delay 1,7 seconds... 	22.1.2022 	21:36:32 	_lx_SERVER 	(6. tbl_ 5)

*** tcp close for sock 83, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	22.1.2022 	21:36:32 	lx 	(5. Tcp Server 2)

closing socket '83'. 	22.1.2022 	21:36:32 	lx 	(5. Tcp Server 2)

*** tcp close for sock 84, type 'nil', protocol 'nil', reason: '', request length: (no request) bytes ***. 	22.1.2022 	21:36:32 	lx 	(5. Tcp Server 2)

closing socket '84'. 	22.1.2022 	21:36:32 	lx 	(5. Tcp Server 2)

 -- Server statistics --
answerCount:          4
poll.fd_count:        2
pollCount:            2960
pollInCount:          6
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  4/2
totalBytesReceived:   4784
totalBytesSent:       2997. 	22.1.2022 	21:36:32 	lx 	(5. Tcp Server 2)

warning: socket type 'number' is not a table, socket number: 86
. 	22.1.2022 	21:36:32 	lx 	(5. Tcp Server 2)

closing socket '86'. 	22.1.2022 	21:36:32 	lx 	(5. Tcp Server 2)

warning: socket type 'number' is not a table, socket number: 85
. 	22.1.2022 	21:36:32 	lx 	(5. Tcp Server 2)

closing socket '85'. 	22.1.2022 	21:36:32 	lx 	(5. Tcp Server 2)

poll.expand_fds, free old fds: cdata<struct pollfd *>: 0x01229ad260. 	22.1.2022 	21:36:32 	lx 	(5. Tcp Server 2)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x01229ad260, size: 400. 	22.1.2022 	21:36:32 	lx 	(5. Tcp Server 2)

--- server stopped ---. 	22.1.2022 	21:36:32 	lx 	(5. Tcp Server 2)

finalizer: free p1 	 cdata<void *>: 0x01229ad260. 	22.1.2022 	21:36:33 	lx 	(5. Tcp Server 2)

Tcp server 2 stopped. 	22.1.2022 	21:36:33 	_lx_SERVER 	(5. Tcp Server 2)

Previous read-write state does not exist for table ’Company ’. 	22.1.2022 	21:58:13 	_tbl WRITE_STATE 	(5. tbl_ 9)

Tcp server 2 starting. 	22.1.2022 	23:50:41 	_lx_SERVER 	(6. Tcp Server 2)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	22.1.2022 	23:50:42 	lx 	(6. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	22.1.2022 	23:50:42 	lx 	(6. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/auth/connection.json'. 	22.1.2022 	23:50:42 	lx 	(6. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	22.1.2022 	23:50:42 	lx 	(6. Tcp Server 2)

    Connected to: 'postgre local socket, /tmp, database: fi_demo, user: manage_demo'. 	22.1.2022 	23:50:42 	lx 	(6. Tcp Server 2)

  database connect time: 0.0008 seconds. 	22.1.2022 	23:50:42 	lx 	(6. Tcp Server 2)

* connect: connection changed to 'postgre-demo/fi_demo'. 	22.1.2022 	23:50:42 	lx 	(6. Tcp Server 2)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	22.1.2022 	23:50:42 	lx 	(6. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	22.1.2022 	23:50:42 	lx 	(6. Tcp Server 2)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x0120faae60, size: 400. 	22.1.2022 	23:50:43 	lx 	(6. Tcp Server 2)

********************* /Users/pasi/nc/nc-server/ *********************. 	22.1.2022 	23:50:43 	lx 	(6. Tcp Server 2)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'. 	22.1.2022 	23:50:43 	lx 	(6. Tcp Server 2)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	22.1.2022 	23:50:43 	lx 	(6. Tcp Server 2)

1. Loading plugin: nc/worker/auth_worker. 	22.1.2022 	23:50:43 	lx 	(6. Tcp Server 2)

2. Loading plugin: nc/worker/query_worker. 	22.1.2022 	23:50:43 	lx 	(6. Tcp Server 2)

3. Loading plugin: nc/worker/query4d_worker. 	22.1.2022 	23:50:43 	lx 	(6. Tcp Server 2)

4. Loading plugin: nc/worker/call4d_worker. 	22.1.2022 	23:50:43 	lx 	(6. Tcp Server 2)

All plugins have been loaded. 	22.1.2022 	23:50:43 	lx 	(6. Tcp Server 2)

* cached preference files: demo-fi_demo-0 - system/4d.json, demo-fi_demo-0 - table/prf/field_type.json, demo-fi_demo-0 - system/option.json. 	22.1.2022 	23:50:43 	lx 	(6. Tcp Server 2)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''. 	22.1.2022 	23:50:43 	lx 	(6. Tcp Server 2)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	22.1.2022 	23:50:43 	lx 	(6. Tcp Server 2)

Mac address: f84d896921dc. 	22.1.2022 	23:50:43 	lx 	(6. Tcp Server 2)

TLS certificate files: /Users/pasi/nc/nc-server/preference/cert/cert.pem, /Users/pasi/nc/nc-server/preference/cert/privkey.pem. 	22.1.2022 	23:50:43 	lx 	(6. Tcp Server 2)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.32.2:5949/
                          https://127.0.0.1:5949/, https://192.168.32.2:5949/. 	22.1.2022 	23:50:43 	lx 	(6. Tcp Server 2)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.32.2:5949/. 	22.1.2022 	23:50:43 	lx 	(6. Tcp Server 2)

--- server started in 0.0052 seconds, 2022-01-22 23:50:43, used memory 3111.9 kb --- 	 5. 	22.1.2022 	23:50:43 	lx 	(6. Tcp Server 2)

OSX arm64, using: rapidjson-arm, lfs-ffi. 	22.1.2022 	23:50:43 	lx 	(6. Tcp Server 2)

1. uri: HTTP, POST '/rest/nc/query/sql4d' 2022-01-22 23:51:54
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 811
Content-Uncompressed-Length: 1244

LZ4. 	22.1.2022 	23:51:54 	lx 	(6. Tcp Server 2)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	22.1.2022 	23:51:54 	lx 	(6. Tcp Server 2)

    Connected to: 'Manageri v12 plg4d local, , database: plg4d, user: manage_demo'. 	22.1.2022 	23:51:54 	lx 	(6. Tcp Server 2)

  database connect time: 0.0001 seconds. 	22.1.2022 	23:51:54 	lx 	(6. Tcp Server 2)

* connect: connection changed from 'postgre-demo/fi_demo' to 'plg4d/plg4d'. 	22.1.2022 	23:51:54 	lx 	(6. Tcp Server 2)

4D: SELECT co.record_id FROM company co WHERE co.company_id <> '' INTO :_lx_atExe1
 - original query: SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.email, co.www, top.net_days, co.telephone_number, co.fax_number, co.info FROM company co  LEFT OUTER JOIN terms_of_payment top ON top.terms_of_payment_id = co.terms_of_payment_id  WHERE co.company_id <> ''  ORDER BY co.company_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_atExe4,:_lx_atExe5,:_lx_atExe6,:_lx_atExe7,:_lx_atExe8,:_lx_alExe1,:_lx_atExe9,:_lx_atExe10,:_lx_atExe11
 - result _lx_atExe1 size: 159, first value: '0001'
 - query name: new:form/nc/erp-sync/query/company.json. 	22.1.2022 	23:51:54 	_lx_ExecuteSqlNew 	(6. Tcp Server 2)

 1. answer time: 00:00:00.00411
  
SELECT co.company_id, co.project_id, co.name, co.name_2, co.record_id, co.change_id, co.email, co.www, top.net_days, co.telephone_number, co.fax_number, co.info
 FROM company co
 LEFT OUTER JOIN terms_of_payment top ON top.terms_of_payment_id = co.terms_of_payment_id
 WHERE co.company_id <> ''
 ORDER BY co.company_id. 	22.1.2022 	23:51:54 	lx 	(6. Tcp Server 2)

*** tcp close for sock 86, type 'nil', protocol 'HTTP', reason: 'POLLHUP', request length: 1 082 bytes ***. 	22.1.2022 	23:54:36 	lx 	(6. Tcp Server 2)

closing socket '86'. 	22.1.2022 	23:54:36 	lx 	(6. Tcp Server 2)

